package com.project.controller;

import com.project.bean.ChannelBean;
import com.project.service.imp.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("channel")
public class ChannelController {

    @Autowired
    private ChannelService channelService;

    @RequestMapping("findAll")
    public List<ChannelBean> findAll(){
        return channelService.findChannelAll();
    }
}
